home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3459 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 64 6e | 73 2e 70 6c 61 6e 6f 2e |Path: dn|s.plano.|
|00000010| 6e 65 74 21 6e 65 77 73 | 09 0a 46 72 6f 6d 3a 20 |net!news|..From: |
|00000020| 43 68 61 72 6c 65 73 20 | 52 69 63 68 6d 6f 6e 64 |Charles |Richmond|
|00000030| 20 3c 72 69 63 68 6d 6f | 6e 64 40 70 6c 61 6e 6f | <richmo|nd@plano|
|00000040| 2e 6e 65 74 3e 0a 4e 65 | 77 73 67 72 6f 75 70 73 |.net>.Ne|wsgroups|
|00000050| 3a 20 63 6f 6d 70 2e 6c | 61 6e 67 2e 63 0a 53 75 |: comp.l|ang.c.Su|
|00000060| 62 6a 65 63 74 3a 20 52 | 65 3a 20 42 61 73 69 63 |bject: R|e: Basic|
|00000070| 20 51 75 65 73 74 69 6f | 6e 20 6f 6e 20 53 57 49 | Questio|n on SWI|
|00000080| 54 43 48 0a 44 61 74 65 | 3a 20 32 39 20 4a 61 6e |TCH.Date|: 29 Jan|
|00000090| 20 31 39 39 36 20 30 36 | 3a 32 35 3a 34 30 20 47 | 1996 06|:25:40 G|
|000000a0| 4d 54 0a 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |MT.Organ|ization:|
|000000b0| 20 43 61 6e 69 6e 65 20 | 43 6f 6d 70 75 74 65 72 | Canine |Computer|
|000000c0| 20 43 65 6e 74 65 72 0a | 4d 65 73 73 61 67 65 2d | Center.|Message-|
|000000d0| 49 44 3a 20 3c 34 65 68 | 70 39 34 24 73 39 63 40 |ID: <4eh|p94$s9c@|
|000000e0| 64 6e 73 2e 70 6c 61 6e | 6f 2e 6e 65 74 3e 0a 52 |dns.plan|o.net>.R|
|000000f0| 65 66 65 72 65 6e 63 65 | 73 3a 20 3c 34 65 34 63 |eference|s: <4e4c|
|00000100| 75 34 24 39 35 66 40 76 | 69 78 65 6e 2e 63 73 6f |u4$95f@v|ixen.cso|
|00000110| 2e 75 69 75 63 2e 65 64 | 75 3e 20 3c 34 65 38 70 |.uiuc.ed|u> <4e8p|
|00000120| 36 6d 24 6e 38 71 40 6e | 73 2e 52 65 7a 6f 4e 65 |6m$n8q@n|s.RezoNe|
|00000130| 74 2e 4e 45 54 3e 20 3c | 33 31 30 38 45 44 34 39 |t.NET> <|3108ED49|
|00000140| 2e 39 38 37 40 63 6d 74 | 2e 6c 70 72 2e 6d 61 69 |.987@cmt|.lpr.mai|
|00000150| 6c 2e 63 61 72 65 6c 2e | 66 69 3e 0a 4e 4e 54 50 |l.carel.|fi>.NNTP|
|00000160| 2d 50 6f 73 74 69 6e 67 | 2d 48 6f 73 74 3a 20 61 |-Posting|-Host: a|
|00000170| 75 78 33 36 2e 70 6c 61 | 6e 6f 2e 6e 65 74 0a 4d |ux36.pla|no.net.M|
|00000180| 69 6d 65 2d 56 65 72 73 | 69 6f 6e 3a 20 31 2e 30 |ime-Vers|ion: 1.0|
|00000190| 0a 43 6f 6e 74 65 6e 74 | 2d 54 79 70 65 3a 20 74 |.Content|-Type: t|
|000001a0| 65 78 74 2f 70 6c 61 69 | 6e 3b 20 63 68 61 72 73 |ext/plai|n; chars|
|000001b0| 65 74 3d 75 73 2d 61 73 | 63 69 69 0a 43 6f 6e 74 |et=us-as|cii.Cont|
|000001c0| 65 6e 74 2d 54 72 61 6e | 73 66 65 72 2d 45 6e 63 |ent-Tran|sfer-Enc|
|000001d0| 6f 64 69 6e 67 3a 20 37 | 62 69 74 0a 58 2d 4d 61 |oding: 7|bit.X-Ma|
|000001e0| 69 6c 65 72 3a 20 4d 6f | 7a 69 6c 6c 61 20 31 2e |iler: Mo|zilla 1.|
|000001f0| 31 4e 20 28 4d 61 63 69 | 6e 74 6f 73 68 3b 20 49 |1N (Maci|ntosh; I|
|00000200| 3b 20 36 38 4b 29 0a 54 | 6f 3a 20 61 72 69 6c 40 |; 68K).T|o: aril@|
|00000210| 63 6d 74 2e 6c 70 72 2e | 6d 61 69 6c 2e 63 61 72 |cmt.lpr.|mail.car|
|00000220| 65 6c 2e 66 69 0a 58 2d | 55 52 4c 3a 20 6e 65 77 |el.fi.X-|URL: new|
|00000230| 73 3a 33 31 30 38 45 44 | 34 39 2e 39 38 37 40 63 |s:3108ED|49.987@c|
|00000240| 6d 74 2e 6c 70 72 2e 6d | 61 69 6c 2e 63 61 72 65 |mt.lpr.m|ail.care|
|00000250| 6c 2e 66 69 0a 0a 41 72 | 69 20 4c 75 6b 75 6d 69 |l.fi..Ar|i Lukumi|
|00000260| 65 73 20 3c 61 72 69 6c | 40 63 6d 74 2e 6c 70 72 |es <aril|@cmt.lpr|
|00000270| 2e 6d 61 69 6c 2e 63 61 | 72 65 6c 2e 66 69 3e 20 |.mail.ca|rel.fi> |
|00000280| 77 72 6f 74 65 3a 0a 3e | 49 66 20 74 68 65 20 74 |wrote:.>|If the t|
|00000290| 61 73 6b 20 69 73 20 6a | 75 73 74 20 74 6f 20 74 |ask is j|ust to t|
|000002a0| 65 73 74 20 66 6f 72 20 | 61 2c 20 73 61 79 2c 20 |est for |a, say, |
|000002b0| 64 69 67 69 74 20 28 65 | 67 2e 20 63 68 61 72 20 |digit (e|g. char |
|000002c0| 61 20 3d 20 27 58 27 3b | 0a 3e 69 73 20 74 68 65 |a = 'X';|.>is the|
|000002d0| 20 63 68 61 72 61 63 74 | 65 72 20 69 6e 20 61 20 | charact|er in a |
|000002e0| 61 20 64 69 67 69 74 3f | 29 2c 20 74 68 65 6e 20 |a digit?|), then |
|000002f0| 79 6f 75 20 63 6f 75 6c | 64 20 61 6c 73 6f 20 75 |you coul|d also u|
|00000300| 73 65 3a 0a 3e 0a 3e 09 | 69 66 20 28 73 74 72 63 |se:.>.>.|if (strc|
|00000310| 68 72 28 22 30 31 32 33 | 34 35 36 37 38 39 22 2c |hr("0123|456789",|
|00000320| 20 61 29 29 0a 3e 09 09 | 2e 2e 2e 20 2f 2a 20 49 | a)).>..|... /* I|
|00000330| 74 20 77 61 73 20 61 20 | 64 69 67 69 74 2c 20 64 |t was a |digit, d|
|00000340| 6f 20 73 6f 6d 65 74 68 | 69 6e 67 20 2a 2f 0a 3e |o someth|ing */.>|
|00000350| 0a 59 6f 75 20 6d 69 67 | 68 74 20 61 6c 73 6f 20 |.You mig|ht also |
|00000360| 75 73 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |use the |followin|
|00000370| 67 20 63 6f 64 65 20 74 | 6f 20 64 65 74 65 72 6d |g code t|o determ|
|00000380| 69 6e 65 20 69 66 20 61 | 20 63 68 61 72 61 63 74 |ine if a| charact|
|00000390| 65 72 20 76 61 72 69 61 | 62 6c 65 20 0a 63 6f 6e |er varia|ble .con|
|000003a0| 74 61 69 6e 73 20 61 20 | 64 69 67 69 74 3a 0a 0a |tains a |digit:..|
|000003b0| 20 20 20 69 66 28 69 73 | 64 69 67 69 74 28 61 29 | if(is|digit(a)|
|000003c0| 29 0a 20 20 20 20 20 20 | 20 2f 2a 20 49 74 20 77 |). | /* It w|
|000003d0| 61 73 20 61 20 64 69 67 | 69 74 2c 20 64 6f 20 73 |as a dig|it, do s|
|000003e0| 6f 6d 65 74 68 69 6e 67 | 20 2a 2f 0a 0a 50 61 72 |omething| */..Par|
|000003f0| 74 20 6f 66 20 74 68 65 | 20 62 65 61 75 74 79 20 |t of the| beauty |
|00000400| 6f 66 20 43 20 28 74 6f | 20 6d 65 29 20 69 73 20 |of C (to| me) is |
|00000410| 74 68 61 74 20 74 68 65 | 72 65 20 61 72 65 20 2a |that the|re are *|
|00000420| 6d 61 6e 79 2a 20 77 61 | 79 73 20 74 6f 20 64 6f |many* wa|ys to do|
|00000430| 20 74 68 65 20 73 61 6d | 65 20 0a 74 68 69 6e 67 | the sam|e .thing|
|00000440| 21 20 53 6f 6d 65 20 6f | 66 20 74 68 65 73 65 20 |! Some o|f these |
|00000450| 77 61 79 73 20 6d 61 79 | 20 2a 6e 6f 74 2a 20 62 |ways may| *not* b|
|00000460| 65 20 6f 62 76 69 6f 75 | 73 20 75 6e 6c 65 73 73 |e obviou|s unless|
|00000470| 20 79 6f 75 20 68 61 76 | 65 20 75 73 65 64 20 74 | you hav|e used t|
|00000480| 68 65 6d 20 0a 79 6f 75 | 72 73 65 6c 66 2e 20 28 |hem .you|rself. (|
|00000490| 54 68 69 73 20 77 61 79 | 20 72 65 61 6c 6c 79 20 |This way| really |
|000004a0| 2a 73 68 6f 75 6c 64 2a | 20 62 65 20 6f 62 76 69 |*should*| be obvi|
|000004b0| 6f 75 73 2c 20 74 68 6f | 75 67 68 2e 29 0a 0a 0a |ous, tho|ugh.)...|
|000004c0| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+